/**
 * 判断是否为外部资源
 * @param {*} path
 */
const isExternal = (path: string): boolean => {
  return /^(https?:|mailto:|tel:)/.test(path)
}

export {
  isExternal
}
